<div class="content4 page" data-page="warehousePickupList2" id="warehousePickupList2">
	<p class="p1"><img src="../../../res/png/round2.png"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:changeTab(1)">项目总览</a>&nbsp;>&nbsp;<a href="javascript:void(0);">融资项目详情</a></p>
	<div class="d2">
		<span class="span1"><a id="accountDetail" class="accountDetail">融资项目信息</a></span><span
			class="span3">|</span>
		<span class="span2"><a
			id="accountMaterial" class="accountMaterial">证明材料</a></span><span
			class="span3">|</span>
		<span class="span4"><a
			id="accountProcess" class="accountProcess">融资动态</a></span><span
			class="span3">|</span>
		<span class="span5"><a
			id="warehousePickups" class="warehousePickups">提货列表</a></span>
			<a class="buttonOperate2 none"></a>
	</div>
	<div class="content2">
		<table class="outerTable2">
			
		</table>
		<script type="text/template" id="warehouseUpInfoTmpl_s2">
		{@each datas as it2}
			<div class="dataTitle">
				<img src="../../../res/png/info_icon.png">基本信息
			</div>
			<div class="dataLine">
					<div>
						融资编号：<input type="text" name="financeNumber" value="${it2.financeNumber}" />
					</div>
					<div>
						申请时间：<input type="text" name="applicationDateTime" value="${it2.applicationDateTime}" />
					</div>
				</div>
				<div class="dataLine">
					<div>
						业务类型：<input type="text" name="productType" value="${getValueByKey(7, it2.productType)}" />
					</div>
					<div>
						融资状态：<input type="text" name="financeState" value="${getValueByKey(30, it2.financeState)}" />
					</div>
				</div>
				<div class="dataLine">
				{@each it2.bulkstocks as item}
					<div>
						质押物：<input type="text" name="bulkstockName" value="${item.bulkstockName}(${item.specification})" />
					</div>
					<div>
						融资质押监管数量：<input type="text" name="weight" value="${item.weight}吨"/>
					</div>
				{@/each}
				</div>
				<div class="dataLine">
					<div>
						审批金额：:<input type="text" name="financeAmount" value="${it2.financeAmount / 10000} 万元" />
					</div>
					<div>
						提货后剩余监管量：<input type="text" name="supervisionQuantity" value="" />
					</div>
				</div>
				<div class="dataLine">
					<div>
						费率：<input type="text" name="accountDetailInterest" value="${it2.financeProductInnerDetail.interest}%" />
					</div>
					<div>
						还款方式：<input type="text" name="bail" value="按月付息到期还本" />
					</div>
				</div>
				<div class="dataLine">
					<div>
						放款批复时间：<input type="text" name="financeProductInnerDetail" value="${it2.loanDate}" />
					</div>
					<div>
						用款时间：<input type="text" name="financeProductInnerDetail" value="${it2.financeProductInnerDetail.financeDays}天" />
					</div>
				</div>
				<div class="dataLine">
					<div>
						用款截止时间：<input type="text" name="financeProductInnerDetail" value="${addDate(it2.loanDate, it2.financeProductInnerDetail.financeDays)}" />
					</div>
					<div>
					</div>
				</div>
		{@/each}
		</script>
	</div>
	<div class="dataTitle">
		<img src="../../../res/png/info_icon.png">提货信息
	</div> 
	<div class="content1">
		<table class="outerTable">
			<tr style="border-bottom: solid 1px #CCC;">
				<th>No</th>
				<th class="none">融资编号</th>
				<th class="none">业务类型</th>
				<th>货物名称</th>
				<th>仓库</th>
				<th class="none">剩余监管量(吨)</th>
				<th>提货量(吨)</th>
				<th>本金(元)</th>
				<th>服务费(元)</th>
				<th>其他(元)</th>
				<th>总金额(元)</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			<tr style="border: none;">
				<td style="padding: 5px 0; border: none;" colspan="13" style="border: none;"></td>
			</tr>
		</table>
		<div class="pagerCon1 none" style="text-align: center;">
			<a class="loadMore" href="javascript:void(0);">加载更多</a> <a class="loadAll" href="javascript:void(0);">显示全部</a>
		</div>
		<script type="text/template" id="warehouseUpInfoTmpl">
			{@each datas as it, index}
				<tr class="bulkstockData2" pickupId="${it.pickupId}" enterpriseId="${it.enterpriseId}" productType="${it.productType}" enterpriseNames="${it.enterpriseName}">
					<td class="index" rowspan="${it.bulkstockList.length*1+ 2}">${index*1 + 1}</td>
					<td colspan="12" style="text-align: right;">
						<span style="float: left; margin-right: 10px;">提单号: ${it.pickupNumber}</span> <span style="float: left;">供应商: ${it.enterpriseName}</span> <!--制单人：${it.creator}--> 制单时间：${it.createDateTime}  最后修改人：${it.updator} 修改时间：${it.updateDateTime}
					</td>
				</tr>
				${aa = 0}
					{@each it.bulkstockList as that}
					${aa = aa*1 + that.pickupAmount}
					{@/each}
					{@each it.bulkstockList as item,i2}

					<tr class="bulkstockData" enterpriseNames="${it.enterpriseName}" buyer="${it.buyer}" pickupId="${it.pickupId}" financeId="${item.financeId}" pickupState="${it.pickupState}" creator="${it.creator}" updator="${it.updator}"  productType="${it.productType}" {@if it.bulkstockList.length > 1}style="border-bottom: solid 1px #CCC;" {@else} style="line-height: 35px;" {@/if}>
						<td>${item.bulkstockName}(${item.specifician})</td><td>${item.warehouseName}<br/>${item.locationArea}/${item.locationName}</td><!--<td>${item.supervisionQuantity}--></td><td>${item.pickupQuantity}</td> <td>${formatCurrency(item.bulkstockAmount)}</td><td>${formatCurrency(item.interest)}</td><td>${formatCurrency(item.others)}</td>
					{@if i2 == 0} 
						<td style="border: solid 1px #CCC;" class="sum" rowspan="${it.bulkstockList.length}">${formatCurrency(aa)}</td>
						{@if it.pickupState == 13}
							<td class="pickupState_s" rowspan="${it.bulkstockList.length}">${getValueByKey(82, it.pickupState)}</td>
						{@else if it.pickupState !=13}	
						<td style="border: solid 1px #CCC; {@if it.pickupState==13 || it.pickupState==1} color: red; {@/if}" rowspan="${it.bulkstockList.length}">${getValueByKey(82, it.pickupState)}{@if it.pickupState != 1 && it.pickupState != 3 && it.pickupState != 4 && it.pickupState != 5 && it.pickupState != 6 && it.pickupState != 7 && it.pickupState != 8 && it.pickupState != 9 }
							{@if it.finalNode != null && it.finalNode != ""}<br /> ${it.finalNode}审核</td>
							{@/if}
						{@/if} 
					{@/if}
						<td class="operation" style="border: solid 1px #CCC;" rowspan="${it.bulkstockList.length}">
							<a href="javascript:void(0);" class="details">详情</a> 
							{@if it.pickupState == 0}
								{@if it.self == true}
									<a href="javascript:void(0);" class="update_s2">修改</a> <a class="cancel_01" href="javascript:void(0);">取消</a>
								{@/if}
							{@else if it.pickupState == 5}
								<a href="javascript:void(0);" id="documentSign_s3">合同签署</a>
							{@/if}
							</td>
						{@/if}        
					</tr>
					{@/each}
				<tr>
					<td colspan="12">
						{@if it.productType == 6}
						<span style="float: left;">买方：${it.buyer}</span>
						{@/if}
						<span style="float: right;"> 送货地址：${it.deliveryAddress} 提货方式：${getValueByKey(81, it.pickupMethod)} 提货时间：${(it.pickupDate).substr(0, 10)}</span>
					</td>
				</tr>
				<tr style="border: none;">
					<td style="padding: 5px 0; border: none;" colspan="13" style="border: none;"></td>
				</tr>
			{@/each}
			<tr style="background: none; border: none;" class="sumInfo">
				<td></td>
				<td></td>
				<td style="font-size: 16px; text-align: right;">合计：</td>
				<td><span style="font-size: 16px;" class="pickupQuantitys">sum</span></td>
				<td><span style="font-size: 16px;" class="bulkstockAmount">sum</span></td>
				<td><span style="font-size: 16px;" class="interest">sum</span></td>
				<td><span style="font-size: 16px;" class="others">sum</span></td>
				<td><span style="font-size: 16px;" class="pickupAmounts">sum</span></td>
				<td></td>
				<td></td>
			</tr>
		</script>
	</div>
</div>